<template>
  <u-sticky :offset-top="top">
    <view class="nav-tar" :style="{paddingTop: navBar.statusBarHeight + 'px', height: navBar.navHeight + 'px'}">
      <view class="title">{{ name }}</view>
    </view>
  </u-sticky>
</template>

<script>
export default {
  props: ['navBar', 'top', 'name'],
  data() {
    return {

    }
  },
  methods: {

  },
  created() {

  },
  mounted() {
  },

}
</script>

<style scoped lang="scss">
.nav-tar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: $vip_color;
  .title {
    font-size: 32rpx;
    color: $vip_color_title;
  }
}
</style>
